# -*- coding: UTF-8 -*-
'''
Created on 16/10/2014

@author: Eduardo Cardeira - Num 6033

Exemplo 1 da Aula Teorica 4

'''
s1 = "stringy ���"
print type(s1)

s2 = u"A��o Revolucion�ria"
print type(s2)

s1 = str("stringy ���")
s2 = unicode("Ac��o Revolucion�ria", errors= 'ignore')
print s2

s3 = unicode('abcdef' + chr(255), errors= 'ignore')
print s3

u = unichr(40123) + u'Alá = ' + unichr(0x0647) + unichr(0x0644) + unichr(0x0644) + unichr(0x0627) + ' = ' + u"\uFDF2"
z = u.encode('utf-8')
print z